package org.zcl.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.*;
import org.zcl.entity.UserTest;
import org.zcl.service.UserTestService;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户表(UserTest)表控制层
 *
 * @author Chenglin Zhu
 * @since 2022-03-15 16:07:41
 */
@RestController
@RequestMapping("userTest")
public class UserTestController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private UserTestService userTestService;

    @GetMapping
    public R<List<UserTest>> selectAsc() {
        return success(this.userTestService.selectAsc());
    }

    @PostMapping
    public R<Boolean> edit(@RequestBody UserTest user) {
        return success(this.userTestService.edit(user));
    }
}

